package com.kaibes.platform.menu;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MenuUtils {

    @Autowired
    private MenuService menuService;

    public String getNameById(Short id) {
        return menuService.getNameById(id);
    }
    
    public List<Menu> listByType(String type) {
        return menuService.listByType(type);
    }
    
}
